
import request from '@/utils/request'

export default {

  recall(params) {
    return request({
      url: '/sxBonusRecord/recall',
      method: 'post',
      params
    })
  },
  addBatchUserBonus(params) {
    const config = {
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    }
    return request.post('/sxBonusRecord/addBatchUserBonus', params, config)
    // return request({
    //   url: '/sxBonusRecord/addBatchUserBonus',
    //   method: 'post',
    //   params
    // })
  },
  addUserBonus(params) {
    return request({
      url: '/sxBonusRecord/addUserBonus',
      method: 'get',
      params
    })
  },
  getList(params) {
    return request({
	    url: '/sxBonusRecord/',
	    method: 'get',
	    params
	  })
  },

  get(params) {
    return request({
      url: '/sxBonusRecord/' + params.id,
      method: 'get',
      params
    })
  },

  getPage(params) {
    return request({
      url: '/sxBonusRecord/page',
      method: 'get',
      params
    })
  },

  update(params) {
    return request({
      url: '/sxBonusRecord/update',
      method: 'post',
      params
    })
  },

  insert(params) {
    return request({
      url: '/sxBonusRecord/insert',
      method: 'post',
      params
    })
  },

  remove(params) {
    return request({
      url: '/sxBonusRecord/delete',
      method: 'post',
      params
    })
  }
}
